package test;

public class Student {
    private String name;

    public Student() {
        this("张三");
    }

    public Student(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                '}';
    }

    public static void main(String[] args) {
        Student student = new Student();
        System.out.println(student.toString());
    }
}
